﻿using BBICMS.Infrastructure.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BBICMS.Model.ViewModel.Front
{
    public class ArticlesVM
    {

        //public IList<Blog> Blogs { get; set; }

        //public string BlogsJSON
        //{
        //    get
        //    {
        //        JsonSerializerSettings settings =
        //            new JsonSerializerSettings()
        //            {
        //                ReferenceLoopHandling = ReferenceLoopHandling.Ignore
        //            };

        //        settings.ContractResolver =
        //            new CamelCasePropertyNamesContractResolver();

        //        var blogs = JsonConvert.SerializeObject(this.Blogs, settings);
        //        return blogs;
        //    }
        //}


        public IEnumerable<Post> Posts { get; set; }
        public PagingInfo PagingInfo { get; set; }


        //public string PostsJSON
        //{
        //    get
        //    {
        //        JsonSerializerSettings settings =
        //            new JsonSerializerSettings()
        //            {
        //                ReferenceLoopHandling = ReferenceLoopHandling.Ignore
        //            };

        //        settings.ContractResolver =
        //            new CamelCasePropertyNamesContractResolver();


        //        var posts = JsonConvert.SerializeObject(this.Posts, settings);
        //        return posts;
        //    }
        //}
    }
}
